//
//  BasePresenter.h
//  DebugDemo
//
//  Created by XFB on 2019/5/8.
//  Copyright © 2019 ZhouCheng. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^PresenterSuccessCallBack)(id result);
typedef void(^PresenterFailureCallBack)(NSError *error);

@interface BasePresenter<E> : NSObject

@property (nonatomic, weak) E view;

/**
 初始化函数

 @param view 要绑定的视图
 @return <#return value description#>
 */
- (instancetype)initWithView:(E)view;

/**
 要绑定的视图

 @param view <#view description#>
 */
- (void)attachView:(E)view;

/**
 要解绑的视图
 */
- (void)detachView;

@end
